//
//  LKSwitchRootVcTool.m
//  LKIntelligentVideoProject
//
//  Created by she1323 on 2018/11/8.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKSwitchRootVcTool.h"
#import "LKTabbarViewController.h"
#import "LKLoginViewController.h"
@implementation LKSwitchRootVcTool

+ (void)switchRootController
{
//    LKTabbarViewController *tabBarController = [[LKTabbarViewController alloc] init];
//    [[UIApplication sharedApplication].delegate.window setRootViewController:tabBarController];
//    return;
    if ([LKUserInforTool account]) {
        LKTabbarViewController *tabBarController = [[LKTabbarViewController alloc] init];
        [[UIApplication sharedApplication].delegate.window setRootViewController:tabBarController];
    } else {
        LKLoginViewController *logvc = [[LKLoginViewController alloc] initWithNibName:@"LKLoginViewController" bundle:nil];
        [[UIApplication sharedApplication].delegate.window setRootViewController:logvc];
    }
    
}

@end
